home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
3_0
/
MTN_RENA
/
MTN_RENA.C1
< prev
Wrap
Text File
|
1990-12-08
|
3KB
|
67 lines
/*
Don╒t you hate it that they changed the format of the Mac Tech Notes? It
screws up the numerical listing in the SF dialog, which means you have
to hunt for the darn file. Is it ╥TN.139.╙ or ╥139╙? Who can tell?
MTN renamer is a no-frills solution to that incredibly irritating
problem. Basically, MTN renamer converts all the ╥nnn╙-format technotes
to the new ╥TN.nnn.╙-format. Suddenly, ╥000 About Mac TNs 10/90╙ becomes
╥TN.000.About╩Mac╩TNs 10/90╙.
To use it, just launch it. MTNR prompts you for the directory where it
should look for those old files, and goes off to change all of them.
Program notes:
If a filename becomes longer than 31 characters, it will be cut
to 31 characters.
There╒s really no error checking besides the bare minimum. If a name
can╒t be changed, the program skips it and goes on. All the files that
the program had problems with will, of course, be at the top of the list
when you view the folder by name (they╒ll still be in the old format, so
will ╘float╒ to the top).
It takes a while if there are a lot of files, but it╒s still faster than
doing it by hand.
The program will run under MultiFinder, but grabs control until it╒s
finished. If the darn thing won╒t run, increase it╒s partition. It╒s set
so small (35K) that any inits that fool with the SF dialogs may eat up
all of it╒s memory.
What's new:
I figured out why the ioFDirIndex kept skipping files. It seems that any
change to a file pushes that file to the bottom of the file list, while
at the same time shifting all the other files up by 1. Thus, MTNR 1.01
only makes 1 pass through the folder/disk, instead of numFiles/4+1 passes.
Speeds it up quite a bit.
General notes:
The commented source code is included.
The program is FISHware, which means that you should send whatever you
want to me if you use the program and find it useful. I╒m still waiting
for a check for $500, 000, a BMW, or a pipe bomb, not necessarily in
that order.
I will not be held responsible for any damage, etc. caused to you, your
computer, your files, etc. The program is given away ╘as is╒, and will
function as described above with the limitations described above.
Basically, please don╒t sue me. There╒s no reason that I can think of
for the program to do anything that it╒s not supposed to. Heck, it╒s so
darn simple I can╒t see where there could be any problems. But if you
have any, drop me a line at any of the addresses below:
CIS: 70365,1426
GEnie: M.Veloso
USmail:
Manuel Veloso
9 High Rock Way #3
Brighton, MA 02135
*/